package javabase.obj;

interface A {
	public abstract void printInfo();
}
class X {
	public void fun0() {
		this.fun(new A() {
			String a = "lzq";
			public void printInfo() {
				System.out.println("世界如此美好" + a);
			}
		});
	}
	public void fun(A a) {
		a.printInfo();
	}
}
public class AnonymousInnerClass {

	public static void main(String[] args) {
		new X().fun0();
	}

}
